package cn.bluemobi.dylan.step.comm;

import android.content.Context;

import cn.bluemobi.dylan.step.moder.bean.User;
import cn.bluemobi.dylan.step.moder.prefs.Prefs;
import cn.bluemobi.dylan.step.moder.prefs.SharedPreferencesHelper;

/**
 * Created by $Liudan on 2018/12/7 0007.
 */
public class UserManager {
    public static User getUser(Context context){
        SharedPreferencesHelper preHelper = new SharedPreferencesHelper(context, Prefs.prefs_name);
        User user = preHelper.getPrefObject(Prefs.key_user, User.class);
        return user;
    }
}
